

let app = new Vue({
    el: '#app',
    data() {
        return {
            timeNow: (new Date()).getTime(),
            timeBefore: 1488930695721
        }
    }
})


Vue.directive('time', {
    // bind: function (el, binding) {
    //     el.innerHTML = timer.getFormatTime(binding.value);
    //     el.__timeout__ == setInterval(function () {
    //         el.innerHTML = Time.getFormatTime(binding, value);
    //     }, 60000);
    // },
    // unbind: function (el) {
    //     clearInterval(el.__timeout__);
    //     delete el.__timeout__;
    // }
})